<%--
  Created by IntelliJ IDEA.
  User: wg
  Date: 2017/10/17
  Time: 11:12
  Description: 
--%>
<%@ page contentType="text/html;charset=UTF-8" isELIgnored="false" errorPage="error.jsp"%>
<html>
<head>
    <title>显示当前city</title>
    <link rel="stylesheet" type="text/css" href="bootstrap-3.3.7-dist/css/bootstrap.css"/>
</head>
<body>

<form class="form-horizontal" action="${pageContext.request.contextPath}/update" method="get">
    <div class="form-group">
        <h3 class="text-center">城市数据</h3>
    </div>

    <input type="text" value="${requestScope.city.id}" hidden="true" name="id">
    <div class="form-group">
        <label for="inputName" class="col-sm-3 control-label">Name</label>
        <div class="col-sm-6">
            <input type="text" class="form-control" id="inputName" name="name"
                   value="${requestScope.city.name}">
        </div>
    </div>

    <div class="form-group">
        <label for="inputCountryCode" class="col-sm-3 control-label">CountyCode</label>
        <div class="col-sm-6">
            <input type="text" class="form-control" id="inputCountryCode" name="countryCode"
                   value="${requestScope.city.countryCode}">
        </div>
    </div>

    <div class="form-group">
        <label for="inputDistrict" class="col-sm-3 control-label">District</label>
        <div class="col-sm-6">
            <input type="text" class="form-control" id="inputDistrict" name="district"
                   value="${requestScope.city.district}">
        </div>
    </div>

    <div class="form-group">
        <label for="inputPopulation" class="col-sm-3 control-label">Population</label>
        <div class="col-sm-6">
            <input type="text" class="form-control" id="inputPopulation" name="population"
                   value="${requestScope.city.population}">
        </div>
    </div>
    <div class="form-group col-sm-offset-5">
        <div class="col-sm-offset-5 col-sm-5">
            <input type="submit" class="btn btn-default"/>
            <a class="btn btn-default" href="${pageContext.request.contextPath}/display">退出</a>
        </div>
    </div>
</form>
</body>
</html>
